package com.wlk.mapper;

import com.wlk.pojo.Teachers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeachersMapper {

    // 添加老师信息
    int addTeacher(Teachers teacher);
    // 获取老师列表
    List<Teachers> getTeachersList(@Param("offset") int offset,@Param("limit") int limit);
    // 根据id删除老师信息
    int deleteTeacher(int id);

    // 根据id更新老师信息
    int updateTeacher(Teachers teacher);

    // 根据id获取老师信息
    String getTeacherNameById(int id);

}
